#include <iostream>
#include <unistd.h>
#include <assert.h>
#include <sys/wait.h>

int main(int args, char *argv[])
{
  assert(args == 3);
  pid_t pid;
  pid = fork();
  if(pid == 0){
    printf("i am child\n");
    execl("./add", "add", argv[1], argv[2], NULL);
    printf("you can not see me!");
  }else{
    int stat;
    pid = wait(&stat);
    printf("i am parent! child returns = %d\n", stat);
    return 0;
  }
}
